﻿function ResetPasswordController($scope, service, $location, $http) {
    $scope.resetPasswordInfo = {
        Email: service.Email,
        Password: "",
        ConfirmPass: "",
        ResetCode: ""
    }

    $scope.reset = function () {
        var api = "api/resetpassword";
        $http.post(api, $scope.resetPasswordInfo)
            .success(function () {
                $location.path("/ResetPassword");
            }).error(function (data) {
                console.log(data);
            });
    };


}